#!/usr/bin/env python
# @Date    : 2023-03-13
# @Author  : Bright (brt2@qq.com)
# @Link    : https://gitee.com/brt2
# @Version : 0.1.0

import os
import sys
import glob
import pprint
from importlib import reload

from .gvar import *
from .debug import *

try:
    import numpy as np
    from . import cvs
except ModuleNotFoundError as e:
    gLogger.warn(e)

try:
    from imageio.v2 import imread, imsave, imwrite
except ModuleNotFoundError:
    gLogger.warn("[!] 未能载入【imageio】模块")
    try:
        from cv2 import imread, imwrite
    except ModuleNotFoundError:
        gLogger.warn("[!] 未能载入【cv2】模块")

try:
    from .plt_util import *
except ModuleNotFoundError as e:
    import traceback
    gLogger.warn(e)
    gLogger.debug(traceback.format_exc())
